// FrogRenameFindReplaceDialog.h : Declaration of the CFrogRenameFindReplaceDialog

#pragma once

#include "resource.h"       // main symbols
#include <atlhost.h>
#include "FrogProgressReportDialog.h"


// CFrogRenameFindReplaceDialog

class CFrogRenameFindReplaceDialog: public CFrogProgressReportDialog<CFrogRenameFindReplaceDialog>,
	public CWinDataExchange<CFrogRenameFindReplaceDialog>
{
public:

	CString m_Find;
	CString m_Replace;

	CFrogRenameFindReplaceDialog(HICON hIcon);

	enum { IDD = IDD_DIALOG_RENAME_SEARCH };

	BEGIN_MSG_MAP(CFrogRenameFindReplaceDialog)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_HANDLER(IDOK, BN_CLICKED, OnClickedOK)
		// FrogBaseDialog Inherited
		CHAIN_MSG_MAP(CFrogProgressReportDialog)
	END_MSG_MAP()

	BEGIN_DDX_MAP(CFrogRenameFindReplaceDialog)
		DDX_TEXT(IDC_EDIT_FIND, m_Find)
		DDX_TEXT(IDC_EDIT_REPLACE, m_Replace)
	END_DDX_MAP()

	// Handler prototypes:
	//  LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	//  LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
	//  LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);

	LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnClickedOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
	virtual void ExecuteCommand();
};


